package com.querycenter.serviceimpl;

import com.querycenter.mapper.LoginMapper;

import com.querycenter.model.UserInfo;
import com.querycenter.serviceinter.LoginServiceInter;

public class LoginServiceImpl implements LoginServiceInter {

	private LoginMapper loginDao = null;

	public LoginMapper getLoginDao() {
		return loginDao;
	}

	public void setLoginDao(LoginMapper loginDao) {
		this.loginDao = loginDao;
	}

	@Override
	public UserInfo selectUserByName(String name) {

		UserInfo user = new UserInfo();
		try {
			user = loginDao.selectUserByName(name);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return user;
	}

}
